package com.ziyucoding.springboot.labs.satokenquicklogin.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页 控制器
 *
 * @author ziyucoding
 * @date 2023-02-13
 **/
@RestController
@RequestMapping("/")
public class IndexController {

    /**
     * 不需要认证
     *
     * @return String
     */
    @GetMapping(value = "/index")
    public String index() {
        return "index";
    }

    /**
     * 需要认证
     *
     * @return String
     */
    @GetMapping(value = "/index2")
    public String index2() {
        return "index2";
    }
}
